﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;

namespace PM.Entity
{
    public class Transaction
    {

        
        #region public methods
        /// <summary>
        /// default constructor of Transaction. 
        /// </summary>
        public Transaction()
        {
            this.TransactionId = 0;
            this.TradeDate = string.Empty;
            this.SecurityId = string.Empty;
            this.Description = string.Empty;
            this.BidPrice = 0;
            this.AskPrice = 0;
            this.OpenPrice = 0;
            this.HighPrice = 0;
            this.LowPrice = 0;
            this.LastTradedPrice = 0;
            this.ClosePrice = 0;
            this.TradeVolume = 0;
            this.ShareVolume = 0;
            this.TurnOver = 0;
            this.IssuedQuantity = 0;            
        }

        #endregion

        #region property

        public int TransactionId { get; set; }
        public string TradeDate { get; set; }
        public string SecurityId { get; set; }
        public string Description { get; set; }
        public double BidPrice { get; set; }
        public double AskPrice { get; set; }
        public double OpenPrice { get; set; }
        public double HighPrice { get; set; }
        public double LowPrice { get; set; }
        public double LastTradedPrice { get; set; }
        public double ClosePrice { get; set; }
        public Int64 TradeVolume { get; set; }
        public Int64 ShareVolume { get; set; }
        public double TurnOver { get; set; }
        public Int64 IssuedQuantity { get; set; }    

        #endregion
    }

    public class TransactionCollection : Collection<Transaction>
    {
        public TransactionCollection()
        {
        }
    }
}
